package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 注册时自行填写，手机号码和注册时间不能变更，其余可修改对象 ahhc_patients
 *
 * @author ruoyi
 * @date 2025-03-14
 */
public class AhhcPatients extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** HZ+手机号 */
    private String id;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String name;

    /** 电话号码 */
    @Excel(name = "电话号码")
    private String phoneNumber;

    /** 出生年份 */
   /// @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生年份", width = 30)
    private Integer birthYear;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 创建时间 */
    private Date registrationTime;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public void setPhoneNumber(String phoneNumber)
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber()
    {
        return phoneNumber;
    }

    public void setBirthYear(Integer birthYear)
    {
        this.birthYear = birthYear;
    }

    public Integer getBirthYear()
    {
        return birthYear;
    }

    public void setGender(String gender)
    {
        this.gender = gender;
    }

    public String getGender()
    {
        return gender;
    }

    public void setRegistrationTime(Date registrationTime)
    {
        this.registrationTime = registrationTime;
    }

    public Date getRegistrationTime()
    {
        return registrationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("phoneNumber", getPhoneNumber())
            .append("birthYear", getBirthYear())
            .append("gender", getGender())
            .append("registrationTime", getRegistrationTime())
            .toString();
    }
}
